home *** CD-ROM | disk | FTP | other *** search
-
-
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- QImageIO - Parameters for loading and saving images
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <qimage.h>
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((())))
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** _i_o_D_e_v_i_c_e,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_e_N_a_m_e,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- ~~~~QQQQIIIImmmmaaaaggggeeeeIIIIOOOO ()
- ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee&&&& iiiimmmmaaaaggggeeee (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt ssssttttaaaattttuuuussss (((()))) ccccoooonnnnsssstttt
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** ffffoooorrrrmmmmaaaatttt (((()))) ccccoooonnnnsssstttt
- QQQQIIIIOOOODDDDeeeevvvviiiicccceeee**** iiiiooooDDDDeeeevvvviiiicccceeee (((()))) ccccoooonnnnsssstttt
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** ffffiiiilllleeeeNNNNaaaammmmeeee (((()))) ccccoooonnnnsssstttt
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** ppppaaaarrrraaaammmmeeeetttteeeerrrrssss (((()))) ccccoooonnnnsssstttt
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** ddddeeeessssccccrrrriiiippppttttiiiioooonnnn (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& ))))
- vvvvooooiiiidddd sssseeeettttSSSSttttaaaattttuuuussss (((( iiiinnnntttt ))))
- vvvvooooiiiidddd sssseeeettttFFFFoooorrrrmmmmaaaatttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- vvvvooooiiiidddd sssseeeettttIIIIOOOODDDDeeeevvvviiiicccceeee (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** ))))
- vvvvooooiiiidddd sssseeeettttFFFFiiiilllleeeeNNNNaaaammmmeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- vvvvooooiiiidddd sssseeeettttPPPPaaaarrrraaaammmmeeeetttteeeerrrrssss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- vvvvooooiiiidddd sssseeeettttDDDDeeeessssccccrrrriiiippppttttiiiioooonnnn (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
- bbbboooooooollll rrrreeeeaaaadddd (((())))
- bbbboooooooollll wwwwrrrriiiitttteeee (((())))
-
- SSSSttttaaaattttiiiicccc PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** ))))
- QQQQSSSSttttrrrrLLLLiiiisssstttt iiiinnnnppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((())))
- QQQQSSSSttttrrrrLLLLiiiisssstttt oooouuuuttttppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((())))
- vvvvooooiiiidddd ddddeeeeffffiiiinnnneeeeIIIIOOOOHHHHaaaannnnddddlllleeeerrrr (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_o_r_m_a_t,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****
- _h_e_a_d_e_r,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_l_a_g_s
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The QImageIO class contains parameters for loading and
- saving images.
-
- QImageIO contains a QIODevice object that is used for image
- data I/O. The programmer can install new image file formats
- in addition to those that Qt implements.
-
- Qt currently supports the following image file formats: GIF
- (reading only), BMP, XBM, XPM and PNM. The different PNM
- formats are: PBM (P1), PGM (P2), PPM (P3), PBMRAW (P4),
- PGMRAW (P5) and PPMRAW (P6).
-
- Additional formats are available with the Qt Image IO
- Extension package.
-
-
-
-
- Page 1 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt))))
-
-
-
- You will normally not need to use this class,
- QPixmap::load(), QPixmap::save() and QImage contain most of
- the needed functionality.
-
- For image files which contain sequences of images, only the
- first is read. See the QMovie for loading multiple images.
-
- PBM, PGM, and PPM format output is only supported in PPMRAW
- format.
-
- WWWWaaaarrrrnnnniiiinnnngggg:::: Unisys has changed its position regarding GIF. If
- you are in a country where Unisys holds a patent on LZW
- compression and/or decompression, Unisys may require you to
- license that technology. These countries include Canada,
- Japan, the USA, France, Germany, Italy and the UK. There is
- more information on Unisys web site: Overview of Unisys'
- position. GIF support may be removed in a future version of
- Qt. We recommend using the PNG format, which is available in
- the Qt Image IO Extension package.
-
- See also: QImage, QPixmap, QFile and QMovie.
-
- MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((())))
- Constructs a QImageIO object with all parameters set to
- zero.
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** iiiiooooDDDDeeeevvvviiiicccceeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- Constructs a QImageIO object with an I/O device and a format
- tag.
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- Constructs a QImageIO object with a file name and a format
- tag.
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::~~~~QQQQIIIImmmmaaaaggggeeeeIIIIOOOO (((())))
- Destroys the object an all related data.
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::ddddeeeeffffiiiinnnneeeeIIIIOOOOHHHHaaaannnnddddlllleeeerrrr (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr
- **** hhhheeeeaaaaddddeeeerrrr,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffllllaaaaggggssss,,,, iiiimmmmaaaaggggeeee____iiiioooo____hhhhaaaannnnddddlllleeeerrrr rrrreeeeaaaadddd____iiiimmmmaaaaggggeeee,,,,
- iiiimmmmaaaaggggeeee____iiiioooo____hhhhaaaannnnddddlllleeeerrrr wwwwrrrriiiitttteeee____iiiimmmmaaaaggggeeee )))) [[[[ssssttttaaaattttiiiicccc]]]]
- Defines a image IO handler for a specified image format. An
- image IO handler is responsible for reading and writing
- images.
-
- Arguments:
-
- _f_o_r_m_a_t is the name of the format.
-
- _h_e_a_d_e_r is a regular expression that recognizes the image header.
-
- to use 0.
-
-
-
- Page 2 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt))))
-
-
-
- _f_l_a_g_s is "T" for text formats like PBM; generally you will want
-
- _r_e_a_d__i_m_a_g_e is a function to read an image of this format.
-
- read_image and write_image are of type image_io_handler, which is
- a function pointer.
- _w_r_i_t_e__i_m_a_g_e is a function to write an image of this format. Both
-
- Example:
-
- void readGIF( QImageIO *image )
- {
- // read the image, using the image->ioDevice()
- }
- void writeGIF( QImageIO *image )
- {
- // write the image, using the image->ioDevice()
- }
- // add the GIF image handler
- QImageIO::defineIOHandler( "GIF",
- "^GIF[0-9][0-9][a-z]",
- 0,
- readGIF,
- writeGIF );
-
- For image formats supporting incremental display, such as
- sequences of animated frames, see the QImageFormatType
- class.
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::ddddeeeessssccccrrrriiiippppttttiiiioooonnnn (((()))) ccccoooonnnnsssstttt
- Returns the image description string.
-
- See also: setDescription().
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::ffffiiiilllleeeeNNNNaaaammmmeeee (((()))) ccccoooonnnnsssstttt
- Returns the file name currently set.
-
- See also: setFileName().
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::ffffoooorrrrmmmmaaaatttt (((()))) ccccoooonnnnsssstttt
- Returns the image format string, or 0 if no format has been
- explicitly set.
-
- ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::iiiimmmmaaaaggggeeee (((()))) ccccoooonnnnsssstttt
- Returns the image currently set.
-
- See also: setImage().
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** dddd )))) [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a string that specifies the image format of the
- image read from _d, or null if the file cannot be read or if
- the format is not recognized.
-
-
-
- Page 3 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt))))
-
-
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
- [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a string that specifies the image format of the file
- _f_i_l_e_N_a_m_e, or null if the file cannot not be read or if the
- format is not recognized.
-
- QQQQSSSSttttrrrrLLLLiiiisssstttt QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::iiiinnnnppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a sorted list of image formats which are supported
- for image input.
-
- QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::iiiiooooDDDDeeeevvvviiiicccceeee (((()))) ccccoooonnnnsssstttt
- Returns the IO device currently set.
-
- See also: setIODevice().
-
- QQQQSSSSttttrrrrLLLLiiiisssstttt QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::oooouuuuttttppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a sorted list of image formats which are supported
- for image output.
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::ppppaaaarrrraaaammmmeeeetttteeeerrrrssss (((()))) ccccoooonnnnsssstttt
- Returns image parameters string.
-
- See also: setParameters().
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::rrrreeeeaaaadddd (((())))
- Reads an image into memory and returns TRUE if the image was
- successfully read.
-
- Before reading an image, you must set an IO device or a file
- name. If both an IO device and a file name has been set,
- then the IO device will be used.
-
- Setting the image file format string is optional.
-
- Note that this function does _n_o_t set the format used to read
- the image. If you need that information, use the
- imageFormat() static functions.
-
- Example:
-
- QImageIO iio;
- QPixmap pixmap;
- iio.setFileName( "burger.bmp" );
- if ( image.read() ) // ok
- pixmap = iio.image(); // convert to pixmap
-
- See also: setIODevice(), setFileName(), setFormat(), write()
- and QPixmap::load().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttDDDDeeeessssccccrrrriiiippppttttiiiioooonnnn (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ddddeeeessssccccrrrriiiippppttttiiiioooonnnn ))))
- Sets the image description string for image handlers that
- support image descriptions.
-
-
-
- Page 4 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt))))
-
-
-
- Currently, no image format supported by Qt use the
- description string.
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttFFFFiiiilllleeeeNNNNaaaammmmeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
- Sets the name of the file to read or write an image.
-
- See also: setIODevice().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttFFFFoooorrrrmmmmaaaatttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- Sets the image format name of the image about to be read or
- written.
-
- It is necessary to specify a format before writing an image.
-
- It is not necessary to specify a format before reading an
- image. If not format has been set, Qt guesses the image
- format before reading it. If a format is set, but the image
- has another (valid) format, the image will not be read.
-
- See also: read(), write() and format().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttIIIIOOOODDDDeeeevvvviiiicccceeee (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** iiiiooooDDDDeeeevvvviiiicccceeee ))))
- Sets the IO device to be used for reading or writing an
- image.
-
- Setting the IO device allows images to be read/written to
- any block-oriented QIODevice.
-
- If _i_o_D_e_v_i_c_e is not null, this IO device will override file
- name settings.
-
- See also: setFileName().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& iiiimmmmaaaaggggeeee ))))
- Sets the image.
-
- See also: image().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttPPPPaaaarrrraaaammmmeeeetttteeeerrrrssss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ppppaaaarrrraaaammmmeeeetttteeeerrrrssss ))))
- Sets the image parameters string for image handlers that
- require special parameters.
-
- Although all image formats supported by Qt ignore the
- parameters string, it will be useful for future extentions
- or contributions (like JPEG).
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::sssseeeettttSSSSttttaaaattttuuuussss (((( iiiinnnntttt ssssttttaaaattttuuuussss ))))
- Sets the image IO status. A non-zero value indicates an
- error, while 0 means that the IO operation was successful.
-
- See also: status().
-
-
-
-
- Page 5 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeeeIIIIOOOO((((3333qqqqtttt))))
-
-
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::ssssttttaaaattttuuuussss (((()))) ccccoooonnnnsssstttt
- Returns the image IO status. A non-zero value indicates an
- error, while 0 means that the IO operation was successful.
-
- See also: setStatus().
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeeeIIIIOOOO::::::::wwwwrrrriiiitttteeee (((())))
- Writes an image to an IO device and returns TRUE if the
- image was successfully written.
-
- Before writing an image, you must set an IO device or a file
- name. If both an IO device and a file name has been set,
- then the IO device will be used.
-
- The image will be written using the specified image format.
-
- Example:
-
- QImageIO iio;
- QImage im;
- im = pixmap; // convert to image
- iio.setImage( im );
- iio.setFileName( "burger.bmp" );
- iio.setFormat( "BMP" );
- iio.write(); // TRUE if ok
-
- See also: setIODevice(), setFileName(), setFormat(), read()
- and QPixmap::save().
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqiiiimmmmaaaaggggeeeeiiiioooo....hhhhttttmmmmllll
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
- Copyright 1992-1997 Troll Tech AS. See the LICENSE file
- included in the distribution for a complete license
- statement.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Generated automatically from the source code.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 6 (printed 9/22/98)
-
-
-
-